package com.example.shirodemo.mapper;

import com.example.shirodemo.controller.vo.RoleMenuVo;import com.example.shirodemo.entity.SMenu;import org.apache.ibatis.annotations.Param;import java.util.List;

/**
 * @Author 绫小路
 * @Date 2021/1/15
 */

public interface SMenuMapper {
  int deleteByPrimaryKey(Integer id);

  int insertSelective(SMenu record);

  SMenu selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(SMenu record);

  List<SMenu> get(@Param("userId") Integer userId);

  List<SMenu> getAll();

  List<RoleMenuVo> getRoleMenu(@Param("roleId") int roleId);
}